package Ontologies;

import jade.content.AgentAction;

/**
 * Created with IntelliJ IDEA.
 * User: jiaka_000
 * Date: 13-5-12
 * Time: 4:27
 * the action class for query request, will be attached with the REQUEST message
 * the commonName and latin Name will be used for tree type matching
 */
public class QueryAction implements AgentAction {

    private String commonName; /** the common name of the tree */
    private String latinName; /** the latin name of the tree */

    /**
     * construct of QueryAction class
     *
     * @param commonName: the common name of the tree
     * @param latinName : the latin name of the tree
     */
    public QueryAction(String commonName, String latinName) {
        this.commonName = commonName;
        this.latinName = latinName;
    }

    /**
     * default construct of QueryAction class
     */
    public QueryAction() {
    }

    public String getCommonName() {
        return commonName;
    }

    public void setCommonName(String commonName) {
        this.commonName = commonName;
    }

    public String getLatinName() {
        return latinName;
    }

    public void setLatinName(String latinName) {
        this.latinName = latinName;
    }
}
